﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Flame.Controls.Common;

namespace Flame.Scintilla
{
    class ScintillaNETCallTip : ICallTip
    {
        ScintillaNET.CallTip _calltip;
        ScintillaNETOverloadList _overlist;
        public ScintillaNETCallTip(ScintillaNET.CallTip calltip)
        {
            _calltip = calltip;
            _calltip.OverloadList = new ScintillaNET.OverloadList();
            _overlist = new ScintillaNETOverloadList(_calltip.OverloadList);

        }
        public bool IsActive { get { return _calltip.IsActive; } }
      
        public void ShowOverload(int position, uint startIndex, int highlightStart, int highlightEnd)
        {
            _calltip.ShowOverload(position, startIndex, highlightStart, highlightEnd);
        }

        public IOverloadList IOverloadList { get { return _overlist; } }
        public void ShowOverload() { _calltip.ShowOverload(); }
    }
}
